<template>
	<view class="personal">
		<u-cell-group>
			<u-cell v-for="item in personalArr" :key="item.name" :iconStyle="item.iconStyle" :icon="item.icon" :isLink="true" :title="item.name" arrow-direction="right" @click="handleClickCell(item)"></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		onShareAppMessage(res) {
			return {
			  title: '石家庄不动产中心',
			  path: '/pages/index'
			}
		},
		data() {
			return {
				personalArr: [
					{ name: '我的预约', path: '/pages/appointment', icon: 'list-dot', iconStyle: { color: '#ff9900' } },
					{ name: '我的消息', path: '/pages/my_message', icon: 'chat-fill', iconStyle: { color: '#19be6b' } },
					{ name: '诚信记录', path: '/pages/good_faith', icon: 'file-text-fill', iconStyle: { color: '#2979ff' } },
					{ name: '信息管理', path: '/pages/userinfo', icon: 'info-circle-fill', iconStyle: { color: '#909399' } },
				]
			};
		},
		methods: {
			handleClickCell(item) {
				uni.navigateTo({
					url: item.path
				})
			}
		}
	}
</script>

<style lang="less">
.personal {
}
</style>
